import { defineConfig } from "vitepress"

// https://vitepress.dev/reference/site-config
export default defineConfig({
  title: "洛鸢的博客",
  description: "记录自己的学习",
  themeConfig: {
    // https://vitepress.dev/reference/default-theme-config
    nav: [
      { text: "Home", link: "/" },
      { text: "Record", link: "src/01-html-css" },
    ],

    sidebar: [
      {
        text: "Examples",
        // collapsed: true,
        items: [
          { text: "01-HTML+CSS", link: "src/01-html-css" },
          { text: "02-JavaScript", link: "src/02-js" },
          { text: "03-Vue", link: "src/03-vue" },
          { text: "04-React", link: "src/04-react" },
          { text: "05-小程序", link: "src/05-mini-program" },
          { text: "06-TypeScript", link: "src/06-ts" },
          { text: "07-Node.js", link: "src/07-node" },
          { text: "08-计算机网络", link: "src/08-network" },
          { text: "09-前端工程化", link: "src/09-engineering" },
          { text: "10-手写实现", link: "src/10-shouxie" },
          { text: "11-其他", link: "src/11-other" },
          { text: "Runtime API Examples", link: "src/api-examples" },
        ],
      },
    ],

    socialLinks: [
      { icon: "github", link: "https://github.com/vuejs/vitepress" },
    ],
  },
})
